<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<script type="text/javascript" src="<%=basePath %>/bootstrap/js/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath %>/bootstrap/js/bootstrap.js"></script>
	<link rel="stylesheet" href="<%=basePath %>/bootstrap/css/bootstrap.css" />
	<link rel="stylesheet" href="<%=basePath %>/bootstrap/css/bootstrap-responsive.css" />
	<style type="text/css">
		body{
			background-image:url(<%=basePath %>/bootstrap/img/2.png);
		}
		.container{
			height:50px;
		}
		.container .nav-collapse{
			margin-top:5px;
		}
		.container-fluid{
			margin-top:70px;
		}
		.span3{
			background-color:#BBD8E9;
			height:200px;
			padding-top:20px;
			font-size:20px;
			font-family:微软雅黑;
			border-radius:10px;
		}
		.span3 .icon-chevron-right{
			padding-left:10px;
			padding-right:20px;
		}
		.span3 a{
			color:black;
		}
		.span3 a:hover{
			color:green;
		}
		.span9{
			background-color:#DCEAF4;
			border-radius:10px;
		}
	</style>
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar">

    <!-- Navbar -->
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="#" style="font-family:微软雅黑;padding-left:50px;">售楼管理系统</a>
          <div class="nav-collapse collapse">
            <ul class="nav" style="margin-left:450px;;">
               <li class="">
                <a href="workermessage.action">用户名:${sessionScope.worker.wname }</a>
              </li>
              <li class="">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown">账号&设置 <b class="caret"></b></a>
					<ul class="dropdown-menu">
					  <li><a href="workermessage.action">用户信息</a></li>
					  <li><a href="groupmessage.action">小组信息</a></li>
					</ul>
              </li>
              <li class="">
                <a href="leave.action">安全退出</a>
              </li>           
            </ul>
          </div>
        </div>
      </div>
    </div>

	
	<!--主要内容-->
	<div class="container-fluid">
		  <div class="row-fluid">
			<div class="span3 bs-docs-sidebar">
				<ul class="nav nav-list bs-docs-sidenav">
				  <li><a href="#"><i class="icon-chevron-right"></i> 最近操作</a></li>
				  <li><a href="#"><i class="icon-chevron-right"></i> 客户信息</a></li>
				  <li><a href="#"><i class="icon-chevron-right"></i> 房子信息</a></li>
				  <li><a href="#"><i class="icon-chevron-right"></i> 交易信息</a></li>
				  <li><a href="taskmessage.action"><i class="icon-chevron-right"></i> 小组任务</a></li>
				</ul>
			  </div>
			  <!--Body content-->
			<div class="span9">
				 <div class="alert alert-block">
				 	<h3>用户信息</h3><br/>
				   <a class="btn btn-large" href="newworker.action">添加新成员</a>
				</div>
					<table>
				<c:forEach items="${wlist }" var="w">
						<tr>
							<td>
								姓名：${w.wname }&nbsp;&nbsp;密码：***&nbsp;&nbsp;电话：${w.wtel }&nbsp;&nbsp;地址:${w.waddress }&nbsp;&nbsp;
								上班时间：${w.createtime }&nbsp;&nbsp;本月交易数量：${w.wcount }&nbsp;&nbsp;所在小组：${w.group.gname }&nbsp;&nbsp;职位:${w.wjob }
							</td>
						</tr>
						<tr>
							<td>
								<a href="workerupdate.action?id=${w.wid }" class="btn btn-info">修改</a>&nbsp;&nbsp;&nbsp;
								<a href="workerdelete.action?id=${w.wid }" class="btn btn-info">删除</a>
							</td>
						</tr>
				</c:forEach>
					</table>
					
			</div>
		  </div>
	</div>
</body>
</html>